package com.xuecheng.system.convert;

import com.xuecheng.api.system.model.dto.DictionaryDTO;
import com.xuecheng.system.entity.Dictionary;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface DictionaryConvert {
DictionaryConvert INSTANCE = Mappers.getMapper(DictionaryConvert.class);

DictionaryDTO entity2Dto(Dictionary dictionary);

List<DictionaryDTO> entitys2Dtos(List<Dictionary> dictionarys);


}
